package com.chaoshi.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

@Data
@NoArgsConstructor
public class FruitRequest {
    @Min(value = 0, message = "苹果数量不能小于0")
    private int apple;

    @Min(value = 0, message = "草莓数量不能小于0")
    private int strawberry;

    @Min(value = 0, message = "芒果数量不能小于0")
    private int mango;
}